<?php

namespace Modules\Common\Models\Validation;


/**
 *@property int $id
 *@property int $sid
 *@property int $eid
 *@property string $book_name
 *@property string $sub_title
 *@property int $author
 *@property int $author_id
 *@property int $assetsId
 *@property string $url
 *@property string $isbn
 *@property int $category_id
 *@property string $publisher
 *@property string $publish_date
 *@property string $language
 *@property int $page_count
 *@property string $price
 *@property string $underlined_price
 *@property string $format
 *@property string $content
 *@property string $description
 *@property int $available
 *@property int $is_free
 *@property int $is_upload
 *@property int $is_recommend
 *@property int $free_chapter_count
 *@property int $total_chapter_count
 *@property int $total_sections_count
 *@property int $cover_image_fileid
 *@property string $cover_image
 *@property int $is_published
 *@property int $ebook_fileid
 *@property int $admin_user_id
 *@property string $created_at
 *@property string $updated_at
 *@property string $deleted_at
 */
trait EbooksValidation 
{


    public function createRules()
    {
         return [
            'rules' => [
                'book_name'=>'string',
                'is_published'=>'integer',
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }

    public function updateRules()
    {
         return [
            'rules' => [
                'book_name'=>'string',
                'is_published'=>'integer',
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }


}
